package com.x.bff.app.enums;

import com.x.core.web.api.IErrorCode;

/**
 * start from 9300000
 */
public enum AppErrorCode implements IErrorCode {
    CUSTOMER_RELATION_ACCESS_FORBID(9300000L, "由于用户隐私，您没有权限进行此操作"),
    CUSTOMER_RESUME_READ_COUNT_RUN_OUT(9300001L, "资料查看次数已用完"),
    IM_SEND_COUNT_RUN_OUT(9300002L, "消息发送条数已用完,可观看广告获取更多免费条数哦~"),

    ;

    private Long code;
    private String message;

    AppErrorCode(Long code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public long getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
